package com.music.detail.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.music.detail.dao.VedioDetailDao;
import com.music.detail.service.VedioDetailService;
import com.music.domain.Video;
import com.music.domain.VideoCommit;

@Service
public class VedioDetailServiceImpl implements VedioDetailService {

	@Autowired
	VedioDetailDao vedioDetailDao;
	
	@Override
	public Video findVideoById(String videoId) {
		return vedioDetailDao.findVideoById(videoId);
	}

	@Override
	public List<VideoCommit> findCommitsById(String videoid) {
		return vedioDetailDao.findCommitsById(videoid);
	}

	@Override
	public void addCommit(Map<String, Object> param) {
		vedioDetailDao.addCommit(param);
	}

}
